package com.mouse.hxsj.config;

import ch.qos.logback.classic.spi.LoggingEvent;
import ch.qos.logback.core.ConsoleAppender;

public class CustomAppender extends ConsoleAppender {
    @Override
    protected void append(Object eventObject) {
        if (eventObject instanceof LoggingEvent) {
            LoggingEvent loggingEvent = (LoggingEvent) eventObject;
//            System.out.println(JsonUtil.toJson(loggingEvent));
        }
        super.append(eventObject);
    }
}
